package com.laolang.pluto.module.generator.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 代码生成配置
 *
 * @author laolang
 * @date 2021-07-2021/7/31 21:50
 */
@Data
@Component
@ConfigurationProperties(prefix = "gen")
@PropertySource(value = {"classpath:generator.yml"})
public class GenConfig {

    /**
     * 作者
     */
    @Value("${author}")
    private String author;

    /**
     * 生成文件路径
     */
    @Value("${genPath}")
    private String genPath;

    /**
     * 包名
     */
    @Value("${packageName}")
    private String packageName;
}
